<!DOCTYPE html>
<html>
<head>
<title>Notifications</title>
<?php
$login = $_GET ["login"];
echo '<meta charset="utf-8" HTTP-EQUIV="Refresh"';
echo '	CONTENT="6; URL=http://fr-d134685.groupinfra.com/showroom/iBeacon_project/iBeacon_project/web/test_notif.php?login=' . $login . '">';
?>
<!-- Bootstrap -->
<link href="../css/bootstrap.min.css" rel="stylesheet" media="screen">
<!-- My style -->
<link href="../css/bootstrap.css" rel="stylesheet" media="screen">
<link href="../css/alert.css" rel="stylesheet">
<link href="../css/notification.css" rel="stylesheet">
</head>
<body>
	<div class="container">
		<div class="row">
			<div class="col-sm-6 col-md-3 col-lg-offset-4" style="width: 1000px;">
				<img class="profile-img" src="../img/zodio.gif"
					style="border-radius: 8px;">
			</div>
			<div class="col-md-12">
				<h2>Notifications parking/entrée du magasin</h2>
				<div class="alert-message warning alert-dismissable">
					<span class="glyphicon glyphicon-certificate"></span> <a
						class="close" href="#" data-dismiss="alert" aria-hidden="true"><i
						class="glyphicon glyphicon-remove"></i></a>
						<?php
						$login = $_GET ["login"];
						echo '<a href="../client_bienvenue_colis.php?login=' . $login . '"><strong>Bienvenu chez Zodio !</strong>';
						echo ' Votre colis est pret !</a>';
						?>
				</div>
					<?php
					require_once ("../services/ResponsableService.php");
					
					$responsableService = new ResponsableService ();
					
					$_SESSION ['promoNonLu'] = $responsableService->getPromoNonLuClient ( "2" );
					
					$listPromoClient = $_SESSION ['promoNonLu'];
					$login = $_GET ["login"];
					if ($listPromoClient != null) {
						foreach ( $listPromoClient as $historique ) {
							$article = $responsableService->getArticlePromo ( $historique->getNumPromo () );
							echo ' <div class="alert-message warning alert-dismissable">';
							echo ' 	<span class="glyphicon glyphicon-certificate"></span> <a';
							echo ' 	class="close" href="#" data-dismiss="alert" aria-hidden="true"><i';
							echo ' 		class="glyphicon glyphicon-remove"></i></a>';
							echo '		<a href="../web/client_affichage_promo.php?id=' . $article->getNumArticle () . '&login=' . $login . '"><strong>Vous avez recu une promotion !</strong>';
							echo ' 		Profitez en elle est exclusivement pour vous !</a>';
							echo ' </div>';
						}
					}
					?>
			</div>
		</div>
	</div>

</body>
<footer>
	<script src="http://code.jquery.com/jquery.js"></script>
	<script src="../js/bootstrap.js"></script>
</footer>
</html>